package com.googlecode.gwt4gae.model;

import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserAccount implements Serializable {
	private static final long serialVersionUID = -3419095971247301503L;
	
	@PrimaryKey    
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String loginName;
	@Persistent
	private String password;
	@Persistent
	private Boolean isEnabled;
	
	public UserAccount() {
		super();
	}

	public UserAccount(String loginName, String password, Boolean isEnabled) {
		super();
		this.loginName = loginName;
		this.password = password;
		this.isEnabled = isEnabled;
	}

	public UserAccount(String loginName, String password) {
		super();
		this.loginName = loginName;
		this.password = password;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Boolean getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}
	
	
}
